package com.yummy.mapper;

import com.yummy.dto.DishDto;
import com.yummy.dto.QueryDishVo;
import com.yummy.dto.QuerySetmealVo;
import com.yummy.dto.SetmealDto;
import com.yummy.entity.Dish;
import com.yummy.entity.Setmeal;
import com.yummy.common.CommonMapper;
import com.yummy.entity.SetmealDish;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Set;

/**
* @author yinbo
* @description 针对表【setmeal(套餐)】的数据库操作Mapper
* @createDate 2022-08-29 23:07:35
* @Entity com.yummy.entity.Setmeal
*/
@Repository
public interface SetmealMapper extends CommonMapper<Setmeal> {
    List<Setmeal> selectAllByCondition(QuerySetmealVo setmealVo);

    Setmeal selectBySetmealId(@Param("id") String id);

    int insertSetmeal(@Param("Setmeal") Setmeal setmeal);

    int updateBySetmeal(Setmeal setmeal);

    long insertSetmealDto(SetmealDto setmealDto);

    int updateStatusById(@Param("id") String id, @Param("status") String status);

    int deleteBySetmealPrimaryKeys(@Param("abc") String... ids);


}
